| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

Public Member Functions | List of all members
nkLog::FileLogger Class Referencefinal

Default implementation of a logger outputing the logged information to a file. More...

Inheritance diagram for nkLog::FileLogger:

## Public Member Functions
| FileLogger (StringView filePath) noexcept
virtual | ~FileLogger ()
StringView | getOutputFilePath () const
void | setOutputFilePath (StringView path)
virtual void | log (StringView message, StringView className) override
Public Member Functions inherited from nkLog::Logger
| Logger () noexcept
virtual | ~Logger ()

## Detailed Description

Default implementation of a logger outputing the logged information to a file.

## Constructor & Destructor Documentation

## ◆ FileLogger()

nkLog::FileLogger::FileLogger | ( | StringView | filePath | ) |
| noexcept

Constructor.

Parameters

  filePath | The path of the file the logger should log into.

## ◆ ~FileLogger()

virtual nkLog::FileLogger::~FileLogger | ( |  | ) |
| virtual

Destructor.

## Member Function Documentation

## ◆ getOutputFilePath()

StringView nkLog::FileLogger::getOutputFilePath | ( |  | ) | const

Returns
  The current path for file being written.

## ◆ setOutputFilePath()

void nkLog::FileLogger::setOutputFilePath | ( | StringView | path | ) |

Allows to change the output file path.

Parameters

  path | The path of the file the logger should be writing to.

## ◆ log()

virtual void nkLog::FileLogger::log | ( | StringView | message,
|  | StringView | className
| ) |  |
| override virtual

See nkLog::Logger::log().

Implements nkLog::Logger.

The documentation for this class was generated from the following file:

- Documentation/Headers/NilkinsLog/Loggers/FileLogger.h